package com.dhc.service.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生表
 *
 * @author KAZU
 * @TableName STUDENT
 */
@TableName(value = "STUDENT")
@Data
public class Student implements Serializable {
	
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	
	/**
	 * 学号
	 */
	@TableId(value = "STU_ID")
	private Long stuId;
	
	/**
	 * 姓名
	 */
	@TableField(value = "STU_NAME")
	private String stuName;
	
	/**
	 * 性别（男-1，女-0）
	 */
	@TableField(value = "STU_SEX")
	private String stuSex;
	
	/**
	 * 年龄
	 */
	@TableField(value = "STU_AGE")
	private Long stuAge;
	
	/**
	 * 电话
	 */
	@TableField(value = "STU_PHONE")
	private String stuPhone;
	
	/**
	 * 班级
	 */
	@TableField(value = "STU_CLASS_ID")
	private Long stuClassId;

	/**
	 * 专业编号
	 */
	@TableField(value = "STU_PROFESSION_ID")
	private Long stuProfessionId;
	
	/**
	 * 逻辑删除（未删除-1， 删除-0）
	 */
	@TableField(value = "STU_DEL_FLAG")
	@TableLogic(value = "1", delval = "0")
	private Long stuDelFlag;
	
	/**
	 * 创建时间
	 */
	@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;
	
	/**
	 * 修改时间
	 */
	@TableField(value = "MODIFY_TIME", fill = FieldFill.INSERT_UPDATE)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date modifyTime;
	
}